home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global movielist, currentindex
- set movielist to []
- set currentindex to 0
- repeat with i = 1 to the maxinteger
- set name to getNthFileNameInFolder(the moviePath, i)
- if name = EMPTY then
- exit repeat
- end if
- if (name contains ".mov") or (name contains ".avi") or (name contains ".bmp") or (name contains ".pct") then
- append(movielist, i)
- end if
- end repeat
- if count(movielist) = 0 then
- quit()
- end if
- end
-
- on stopMovie
- clearGlobals()
- end
-